<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.Mledit类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_mledit.html">Mledit</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classawtk_1_1_mledit-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.Mledit类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.Mledit 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_mledit.png" usemap="#awtk.Mledit_map" alt=""/>
  <map id="awtk.Mledit_map" name="awtk.Mledit_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ab270af4748a3e7f25956ac981d0d4235"><td class="memItemLeft" align="right" valign="top"><a id="ab270af4748a3e7f25956ac981d0d4235"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Mledit</b> (long nativeObj)</td></tr>
<tr class="separator:ab270af4748a3e7f25956ac981d0d4235"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac61f5d104111dec1870f3afaf3fd1764"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_mledit.html#ac61f5d104111dec1870f3afaf3fd1764">setReadonly</a> (boolean readonly)</td></tr>
<tr class="separator:ac61f5d104111dec1870f3afaf3fd1764"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f562ef3c1288379482eeb0603ccef28"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_mledit.html#a5f562ef3c1288379482eeb0603ccef28">setFocus</a> (boolean focus)</td></tr>
<tr class="separator:a5f562ef3c1288379482eeb0603ccef28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc46e42d7bad138c8383757a84aa7a93"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_mledit.html#afc46e42d7bad138c8383757a84aa7a93">setWrapWord</a> (boolean wrap_word)</td></tr>
<tr class="separator:afc46e42d7bad138c8383757a84aa7a93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2028284349ed04e76b4b86aaa781d260"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_mledit.html#a2028284349ed04e76b4b86aaa781d260">setMaxLines</a> (int max_lines)</td></tr>
<tr class="separator:a2028284349ed04e76b4b86aaa781d260"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ee841df638bf4d9731686dcd99536b8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_mledit.html#a9ee841df638bf4d9731686dcd99536b8">setInputTips</a> (String tips)</td></tr>
<tr class="separator:a9ee841df638bf4d9731686dcd99536b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20e5d3214c71390e176bc2af3a001d9b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_mledit.html#a20e5d3214c71390e176bc2af3a001d9b">setCursor</a> (int cursor)</td></tr>
<tr class="separator:a20e5d3214c71390e176bc2af3a001d9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc8e14bab9869fdecd28e3e18b86384e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_mledit.html#abc8e14bab9869fdecd28e3e18b86384e">setScrollLine</a> (int scroll_line)</td></tr>
<tr class="separator:abc8e14bab9869fdecd28e3e18b86384e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4327aa55ef7310d2beb5f08c7d998fc"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_mledit.html#af4327aa55ef7310d2beb5f08c7d998fc">getReadonly</a> ()</td></tr>
<tr class="separator:af4327aa55ef7310d2beb5f08c7d998fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61f9bc91c9d40f5abcefd6f4be0c7dbf"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_mledit.html#a61f9bc91c9d40f5abcefd6f4be0c7dbf">getTips</a> ()</td></tr>
<tr class="separator:a61f9bc91c9d40f5abcefd6f4be0c7dbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ea32d61fd14a06b1813a0b2faab6acb"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_mledit.html#a5ea32d61fd14a06b1813a0b2faab6acb">getWrapWord</a> ()</td></tr>
<tr class="separator:a5ea32d61fd14a06b1813a0b2faab6acb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7563704af642466fffabad6e4f64f332"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_mledit.html#a7563704af642466fffabad6e4f64f332">getMaxLines</a> ()</td></tr>
<tr class="separator:a7563704af642466fffabad6e4f64f332"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0ad64a5408337c8db3d2e923b7a93f1"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_mledit.html#ab0ad64a5408337c8db3d2e923b7a93f1">getScrollLine</a> ()</td></tr>
<tr class="separator:ab0ad64a5408337c8db3d2e923b7a93f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a76dcffaef5de1c915a41863dee766364"><td class="memItemLeft" align="right" valign="top"><a id="a76dcffaef5de1c915a41863dee766364"></a>
static <a class="el" href="classawtk_1_1_mledit.html">Mledit</a>&#160;</td><td class="memItemRight" valign="bottom"><b>cast</b> (long nativeObj)</td></tr>
<tr class="separator:a76dcffaef5de1c915a41863dee766364"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ac276fd038bead24770ef131ed0f5ca"><td class="memItemLeft" align="right" valign="top">static Widget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_mledit.html#a4ac276fd038bead24770ef131ed0f5ca">create</a> (Widget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:a4ac276fd038bead24770ef131ed0f5ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9f0d7e4be98e3e0d562fd949a59e8dc"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_mledit.html">Mledit</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_mledit.html#ab9f0d7e4be98e3e0d562fd949a59e8dc">cast</a> (Widget widget)</td></tr>
<tr class="separator:ab9f0d7e4be98e3e0d562fd949a59e8dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:ae6f1784607ae7863fe1496a84b04cea8"><td class="memItemLeft" align="right" valign="top"><a id="ae6f1784607ae7863fe1496a84b04cea8"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:ae6f1784607ae7863fe1496a84b04cea8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>多行编辑器控件。</p>
<p>mledit_t是widget的子类控件，widget_t的函数均适用于mledit_t控件。</p>
<p>在xml中使用"mledit"标签创建多行编辑器控件。如：</p>
<div class="fragment"><div class="line">&lt;<span class="keywordtype">mledit</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;c&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;m&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;300&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;300&quot;</span> /&gt;</div></div><!-- fragment --><p>更多用法请参考：<a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/mledit.xml">mledit.xml</a></p>
<p>在c代码中使用函数mledit_create创建多行编辑器控件。如：</p>
<p>完整示例请参考：<a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/mledit.c">mledit demo</a></p>
<p>time_clock一般不需要设置style。 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="ab9f0d7e4be98e3e0d562fd949a59e8dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab9f0d7e4be98e3e0d562fd949a59e8dc">&#9670;&nbsp;</a></span>cast()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_mledit.html">Mledit</a> awtk.Mledit.cast </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为mledit对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>mledit对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>mledit对象。 </dd></dl>

</div>
</div>
<a id="a4ac276fd038bead24770ef131ed0f5ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ac276fd038bead24770ef131ed0f5ca">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Widget awtk.Mledit.create </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建mledit对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a7563704af642466fffabad6e4f64f332"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7563704af642466fffabad6e4f64f332">&#9670;&nbsp;</a></span>getMaxLines()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.Mledit.getMaxLines </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>最大行数。 </p>

</div>
</div>
<a id="af4327aa55ef7310d2beb5f08c7d998fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af4327aa55ef7310d2beb5f08c7d998fc">&#9670;&nbsp;</a></span>getReadonly()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.Mledit.getReadonly </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>编辑器是否为只读。 </p>

</div>
</div>
<a id="ab0ad64a5408337c8db3d2e923b7a93f1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab0ad64a5408337c8db3d2e923b7a93f1">&#9670;&nbsp;</a></span>getScrollLine()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.Mledit.getScrollLine </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>鼠标一次滚动行数。 </p>

</div>
</div>
<a id="a61f9bc91c9d40f5abcefd6f4be0c7dbf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a61f9bc91c9d40f5abcefd6f4be0c7dbf">&#9670;&nbsp;</a></span>getTips()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.Mledit.getTips </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>输入提示。 </p>

</div>
</div>
<a id="a5ea32d61fd14a06b1813a0b2faab6acb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ea32d61fd14a06b1813a0b2faab6acb">&#9670;&nbsp;</a></span>getWrapWord()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.Mledit.getWrapWord </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否自动折行。 </p>

</div>
</div>
<a id="a20e5d3214c71390e176bc2af3a001d9b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a20e5d3214c71390e176bc2af3a001d9b">&#9670;&nbsp;</a></span>setCursor()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Mledit.setCursor </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cursor</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器光标位置。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">cursor</td><td>光标位置。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a5f562ef3c1288379482eeb0603ccef28"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f562ef3c1288379482eeb0603ccef28">&#9670;&nbsp;</a></span>setFocus()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Mledit.setFocus </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>focus</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置为焦点。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">focus</td><td>是否为焦点。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a9ee841df638bf4d9731686dcd99536b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ee841df638bf4d9731686dcd99536b8">&#9670;&nbsp;</a></span>setInputTips()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Mledit.setInputTips </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>tips</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器的输入提示。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">tips</td><td>输入提示。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a2028284349ed04e76b4b86aaa781d260"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2028284349ed04e76b4b86aaa781d260">&#9670;&nbsp;</a></span>setMaxLines()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Mledit.setMaxLines </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>max_lines</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器的最大行数。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">max_lines</td><td>最大行数。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ac61f5d104111dec1870f3afaf3fd1764"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac61f5d104111dec1870f3afaf3fd1764">&#9670;&nbsp;</a></span>setReadonly()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Mledit.setReadonly </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>readonly</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器是否为只读。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">readonly</td><td>只读。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="abc8e14bab9869fdecd28e3e18b86384e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abc8e14bab9869fdecd28e3e18b86384e">&#9670;&nbsp;</a></span>setScrollLine()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Mledit.setScrollLine </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>scroll_line</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器滚动速度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">scroll_line</td><td>滚动行数。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="afc46e42d7bad138c8383757a84aa7a93"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afc46e42d7bad138c8383757a84aa7a93">&#9670;&nbsp;</a></span>setWrapWord()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Mledit.setWrapWord </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>wrap_word</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器是否自动折行。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">wrap_word</td><td>是否自动折行。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/Mledit.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
